home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / compress / expand15.lzh / expando.txt < prev    next >
Text File  |  1993-04-07  |  12KB  |  238 lines

  1.                              Expand-o-matic:
  2.               Automatic File Extractor (Well, semi-automatic)
  3.                                Version 1.5
  4.                                 12/20/92
  5.                               Public Domain
  6.                                    by
  7.                               Andrew Cullum
  8.  
  9. If you are already familiar with an earlier version, see the attached
  10. update.txt file for a brief list of the changes.
  11.  
  12. This program may be freely copied so long as all three files (expando.prg, 
  13. expando.txt and expand15.rsc) are included in their original 
  14. (i.e. unmodified) form.  If you find this program useful you might 
  15. consider:
  16.                 Sending the author (namely me) $5-10
  17.                 Giving blood at your local Red-Cross
  18.                 Going out and buying a commercial program at your
  19.                         local ST dealer
  20.                 Some other good deed
  21.  
  22. Thanks to those who gave me help on Pexec(), namely Carlos Sara,
  23. Carlos Varela and Richard Syratt (Hope I got the names right, I'm
  24. going from memory)
  25.  
  26. And Thanks to Fred Koch and Gordon Meyer for their suggestions for the
  27. upgrade.
  28.  
  29. And forgive me, this is my first attempt at documentation.
  30.  
  31.  
  32. So, what's it do?
  33.  
  34. Expand-o-matic is a shell for dealing with a variety of compressed
  35. formats.  Most shells that I have seen allow you to do everything
  36. that the various archivers can do, i.e. archive, extract, list files,
  37. etc.  The problem with this is that they are not as convenient as they
  38. might be.  As I almost never do anything other than extract files, I
  39. decided to write a shell that is more convenient, at the price of
  40. not being able to do the other functions.  Thus, after much swearing
  41. and reading of manuals (normally in that order, and repeated several
  42. times), was born Expand-o-matic.  The first time you run the program,
  43. you will need to set it up (see the section on Setup below), to
  44. tell it which archive types you deal with, and where the program for
  45. that type is located.  After that, just give it the name of the file,
  46. or if you are using NeoDesk or a Tos version of 2.05 or higher, drag 
  47. the file onto the Expando.prg icon, and off it goes .  It looks at 
  48. the extension of the file you give it, and calls the appropriate 
  49. program for that type of archive.  All this is explained in more 
  50. detail below.
  51.  
  52. Setup:
  53. Before you can extract files with Expand-o-matic you will need to set
  54. everything up.  To do this go to the Setup option under the File menu,
  55. or hit Alt-s.  Across the top of the dialog box that appears it will
  56. say:
  57.         Ext.    Com.            Archive
  58.  
  59. and have a box beneath each.  Ext. stands for extension.  Click on the
  60. box below it and enter the extension for an archive you deal with,
  61. such as .ARC or .LZH.  If you enter lowercase letters, they will be
  62. converted to uppercase for you.  Com.  stands for command.  This is 
  63. the command that is used to extract that type of archive.  For all the 
  64. archivers that I know of x is the  command you want, but I thought I would 
  65. play it safe and make it configurable.  Click on the box and enter the 
  66. appropriate command.  Archive is the program that should be run for 
  67. files that end with the extension listed in the first box.  Click on 
  68. the box below Archive and a file selector will pop up.  Select the 
  69. program you want and click on OK.  The three boxes should then look 
  70. something like this:
  71.  
  72.         .ARC    x       D:\ARCHIVES\ARC602\ARC.TTP
  73.  
  74. To add another extension, command and program, click on New.  See The
  75. New Button below.
  76.  
  77.         To set where your files will be extracted to click to the right of
  78. where it says Destination.  A file selector should appear.  Go to
  79. the drive and directory that you want and click on OK.
  80.  
  81.         To set where it will go to for you to select files, click to the
  82. right of where it says Source.  Select the source directory as you
  83. did for the Destination above.
  84.  
  85. The New Button:
  86.         Click on the button that says New and you will get a blank entry,
  87. in which to add a second set of extension/command/program information.
  88. Use the arrows on either side of the boxes at the top to scroll
  89. through the sets that you have.
  90.  
  91. The Delete Button:
  92.         Click on this to delete the set that is currently displayed at
  93. the top.  You will be asked if you are sure that you want to do this.
  94. Click Yes, or hit return, and it will be erased.
  95.  
  96. The Save Button:
  97.         Click on the Save button to save your current configuration in
  98. a file called EXPANDO.CFG.  Expand-o-matic looks for this file
  99. when it starts up, and reads in the information if it finds it.  The
  100. configuration information is stored in a regular text file, so if
  101. things get messed up it should be easy enough to fix.  If you want to
  102. edit the config file, see 'The Config File' below.
  103.  
  104. The Reload Button:
  105.         This will read in the current EXPANDO.CFG file, thus returning
  106. all your settings to the last time you saved (the poor man's cancel
  107. option).
  108.  
  109. The OK Button:
  110.         Use this to exit Setup
  111.  
  112. The Options Button:
  113.         This button will take you to a seperate dialog box, with six
  114. options listed on it.  If the box to the left of the option is
  115. shaded, the option is turned on.  The options are:
  116.  
  117. Continue Until Cancel?
  118.     If you have a lot of files to extract, click on the box by Continue
  119. Until Cancel.  With this set, after the first archive is done, the
  120. file selector will appear, prompting you for a second.  It will keep
  121. doing this until you hit cancel.
  122.  
  123. Quit After Auto-run?
  124.     If you check this box the program will automatically quit after
  125. expanding files passed to it from the command line or by dropping
  126. files onto the program.  Thus you just have to drop the file on the
  127. icon, it'll extract it and then quit, you don't have to do anything
  128. else.
  129.  
  130. Remember Directories?
  131.         If this option is set, the program will keep track of the last
  132. directory that you selected a file from while 'Expand'ing, and go
  133. back to there for you to select the next one.  If this isn't set, the
  134. file selector will go back to the folder you put into the 'Source' 
  135. box.  If 'Source' isn't set either, it will go to the folder where
  136. expando.prg is.
  137.  
  138. Auto-Create Directory?
  139.         If this is set, Expand-o-matic will create a folder with the same
  140. name as the file you are expanding, minus the extension, and expand
  141. the files into there.  For instance, if your 'Destination' is
  142. 'd:\newstuff\', and you are unarcing 'neato.arc', it would create
  143. 'd:\newstuff\neato\' and unarc the files into there.
  144.  
  145. Use File Directory?
  146.         If this is set your files will be uncompressed to the same
  147. directory that your archive is located in (or a folder created in
  148. that directory, if you have Auto-Create Directory set).
  149.  
  150. Prompt For Directory?
  151.         With this option set, after you select the file(s) to uncompress,
  152. you will be presented with another file selector and asked to choose
  153. the directory for the files to be placed in, rather than the
  154. 'Destination' or Expando directory being used.  If Auto-create is set
  155. new folders will be created in the directory you select.  You can also
  156. have it prompt you for the directory (without this option being set)
  157. by holding down the alternate key when you select the name of the file
  158. to unarchive.
  159.  
  160. Extracting Files:
  161.         There are three ways to extract (or expand) files with
  162. Expand-o-matic.  The easiest way, if you use NeoDesk or
  163. TOS 2.05 or higher, is to simply drag the icon for the archive
  164. you want to extract files from onto the icon for EXPANDO.PRG.
  165. The program will the start up and automatically start extracting for
  166. you.  If you pass it more than one file this way, by holding down
  167. shift and selecting them all, Expand-o-matic will deal with each of
  168. them in turn (Note: TOS 2.05 + only seems to pass the first file name
  169. this way, so you can only drop one file at a time).
  170.         The second way is to simply start up the program and go to the Expand 
  171. option under the Files menu, or hit Alt-e.  You will then be presented 
  172. with a file selector to pick the file that you want it to expand (also 
  173. see W